package com.yang.dao;

import com.yang.entity.UserEntity;
import com.yang.entity.VerificationCodeEntity;

public interface RegisterDao {

    /**
     * 删除code
     * @param QQEmil
     */
    public boolean deleteCode(String QQEmil);

    /**
     *保存code
     * @param verificationCodeEntity
     */
    public boolean saveCode(VerificationCodeEntity verificationCodeEntity);

    /**
     * 判断该Emil在user上是否存在
     * @param QQEmil
     * @return
     */
    public boolean judgeEmilExist(String QQEmil);

    /**
     * 查找验证码表实体
     * @param QQEmil
     * @return
     */
    public VerificationCodeEntity findVerificationCode(String QQEmil);

    /**
     * 报错user实体
     * @param userEntity
     * @return
     */
    public boolean saveUser(UserEntity userEntity);
}
